<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>MyJPetStore</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
<header th:replace="common/top"></header>

<div id="Content">
    <h2>My Orders</h2>

    <table>
        <tr>
            <th>Order ID</th>
            <th>Date</th>
            <th>Total Price</th>
        </tr>

        <tr th:each="order:${orderList}">
            <td>
                <a href="#" th:text="${order.orderId}">Order ID</a>
            </td>
            <td>
                <label th:text="${#dates.format(order.orderDate,'yyyy/MM/dd hh:mm:ss')}">2020/4/1</label>
            </td>
            <td>
                <label th:text="${#numbers.formatDecimal(order.totalPrice,1,2)}">Total Price</label>
            </td>
        </tr>
    </table>
</div>

<footer th:replace="common/bottom"></footer>
</body>
</html>